package com.qn.chain2;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 请假条
 *
 * @author QuNing
 * @date 2022/08/19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LeaveRequest {
    private String name;//姓名
    private int num;//请假天数
    private String content;//请假内容

    // 重写toString
    @Override
    public String toString() {
        return this.name+ "请假" + this.name + "天，" + this.content + "。";
    }
}
